package cn.linran.pet.service;

import cn.linran.basic.util.PageList;
import cn.linran.pet.domain.SearchMasterMsg;
import cn.linran.basic.service.IBaseService;
import cn.linran.pet.dto.AcceptDto;
import cn.linran.pet.query.SearchMasterMsgQuery;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author linran
 * @since 2022-08-09
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    void publish(SearchMasterMsg ssm, Long id);

    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, Long id);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 接单
     * @param dto
     * @param id
     */
    void accept(AcceptDto dto, Long id);
}
